package com.seventh.associationsystem.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "ad_create_application")
public class CreateApplication extends Application {

    // 申请创建的社团
    @ManyToOne
    private Association association;

    //申请人
    @ManyToOne
    private User user;
}
